# Makefile for Cone3 example -- Charl P. Botha <c.p.botha@its.tudelft.nl>
# $Id: Makefile 24 2001-03-16 15:32:18Z cpbotha $

### configure these variables to build Cone3 on your system

CXX = g++ # for irix you probably want to change this to CC
FLTK_HOME = $(HOME)/opt/fltk
VTK_ROOT = $(HOME)/build/vtk
VFLRWI_HOME = ../..

### you shouldn't need to configure anything below here

CCOPT = -g \
-I$(FLTK_HOME)/include -I$(VTK_ROOT)/common -I$(VTK_ROOT)/graphics \
-I$(VTK_ROOT)/imaging -I$(VTK_ROOT)/patented -I$(VTK_ROOT)/contrib \
-I$(VFLRWI_HOME)

LIBDIRS = -L$(FLTK_HOME)/lib \
-L$(VTK_ROOT)/common -L$(VTK_ROOT)/graphics -L$(VTK_ROOT)/imaging \
-L$(VTK_ROOT)/patented -L$(VTK_ROOT)/contrib \
-L/usr/X11R6/lib

LIBS = -lfltk -lGLU -lGL \
-ldl -lpthread \
-lX11 -lXext -lXt -lSM -lICE \
-lVTKImaging -lVTKGraphics -lVTKCommon -lVTKPatented -lVTKContrib

LDOPTS = $(LIBDIRS) $(LIBS)

Cone3: Cone3.o vtkFlRenderWindowInteractor.o
	$(CXX) -o $@ $^ $(LDOPTS)
	
%.o: %.cxx
	$(CXX) $(CCOPT) -c $< -o $@
	
Cone3.o: Cone3.cxx

vtkFlRenderWindowInteractor.o: $(VFLRWI_HOME)/vtkFlRenderWindowInteractor.cxx $(VFLRWI_HOME)/vtkFlRenderWindowInteractor.h
	$(CXX) $(CCOPT) -c $< -o $@
	
clean:
	rm -f *~ *.o Cone3
	
